package com.planet.events;

import com.planet.classes.Event;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.TextView;

public class EventDetailsActivity extends Activity {
	private TextView _location;
	private TextView _date;
	private TextView _start;
	private TextView _title;
	private TextView _price_pre;
	private TextView _price_event;
	private TextView _info;
	private TextView _image;
	private TextView _url;
	private CheckBox _fav;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.eventdetail);
		
		Bundle _bundle = getIntent().getExtras();
		Event e = (Event)_bundle.getSerializable("Event");
		
		_location = (TextView)findViewById(R.id.location);
		_date = (TextView)findViewById(R.id.date);
		_start = (TextView)findViewById(R.id.start);
		_title = (TextView)findViewById(R.id.title);
		_price_pre = (TextView)findViewById(R.id.price_pre);
		_price_event = (TextView)findViewById(R.id.price_event);
		_info = (TextView)findViewById(R.id.info);
		_image = (TextView)findViewById(R.id.image);
		_url = (TextView)findViewById(R.id.url);
		
		_fav.setOnClickListener(new View.OnClickListener() {			
			public void onClick(View v) {
				if(_fav.isChecked()){
					
				}else if(!_fav.isChecked()){
					
				}
			}
		});
		
		_location.setText(Integer.toString(e.get_location()));
		_date.setText(e.get_date());
		_start.setText(e.get_start());
		_title.setText(e.get_title());
		_price_pre.setText(Double.toString(e.get_price_pre()));
		_price_event.setText(Double.toString(e.get_price_event()));
		_info.setText(e.get_info());
		_image.setText(e.get_image());
		_url.setText(e.get_url());
		
	}
}
